package cn.tedu.egweibo5.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author Justin Parker
 * @author 2024/8/14 22:25
 * @version 1.0
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    NOT_LOGIN(1000, "未登录"),
    LOGIN_SUCCESS(1001, "登录成功"),
    PASSWORD_ERROR(1002, "密码错误"),
    USERNAME_ERROR(1003, "用户名错误"),
    USERNAME_EXISTS(1004, "用户名被占用"),
    OPEARTION_SUCCESS(2001, "操作成功"),
    OPEARTION_FAILED(2002, "操作失败");

    private Integer state;
    private String message;

}
